package ${po.packageName};
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
<#list po.importNames as data>
import ${data};
</#list>

/**
*  @author wuxi
*/
@Data
@TableName(value = "${po.tableName}")
public class ${po.className} {
<#list po.attrs as attr>

    <#if (attr.comment != "")>
    /**
     * ${attr.comment}
     */
    </#if>
    <#if (attr.name=="id")>
    @TableId(value = "id")
    <#else>
    @TableField(value = "${attr.dbName}")
    </#if>
    private ${attr.type} ${attr.name};
</#list>

}